package com.jblv.frame.user;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@Configurable
@SpringBootApplication(scanBasePackages = {"com.jblv.frame"})
@ImportResource("classpath:provider.xml")
public class UserApplication {
    private final static Logger logger = LoggerFactory.getLogger(UserApplication.class);
    public static void main(String[] args) {
        long beginT = System.currentTimeMillis();
        logger.info("begin:"+beginT);
        SpringApplication.run(UserApplication.class,args);
        logger.info("UserService启动成功,共用"+(System.currentTimeMillis()-beginT )+"ms");
    }
}
